<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateInvoiceRecordTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //发票记录
        Schema::create('invoice_record',function(Blueprint $table)
        {
            $table->increments('id');
            $table->string('unit_name')->nullable()->comment('单位名称');
            $table->string('unit_province')->nullable()->comment('单位省');
            $table->string('unit_city')->nullable()->comment('单位市');
            $table->string('unit_area')->nullable()->comment('单位区');
            $table->string('unit_address')->nullable()->comment('单位详细地址');
            $table->string('unit_phone')->nullable()->comment('单位电话');
            $table->string('Invoice_tax_number')->nullable()->comment('发票税号');
            $table->string('email_address')->default(0)->comment('邮箱地址');
            $table->string('bank_account')->default(0)->comment('开户银行');
            $table->string('bank_account_num')->default(0)->comment('开户银行');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
